
************************************************************
*  Regressions in Table 2a
************************************************************

# delimit ;
version 11;
capture log close;
set more 1;

log using table2a.log, replace;
use data_1yr_stacked;

gen yob=1959-age;
gen time=yob-1915;

*  Regression results women age 18-44;
*  All population;
reg marrf sr10a lnpopm urbshf i.yob i.regno, cluster(regno);
reg marrf sr10a lnpopm urbshf i.yob i.regno [aweight=popf], cluster(regno);
reg marrf sr10a lnpopm urbshf i.yob i.regno i.regno#c.time, cluster(regno);
reg marrf sr10a lnpopm urbshf i.yob i.regno i.regno#c.time [aweight=popf], cluster(regno);

*  Urban age 18-44;
reg marrfu sr10u lnpopmu i.yob i.regno, cluster(regno);
reg marrfu sr10u lnpopmu i.yob i.regno [aweight=popfu], cluster(regno);
reg marrfu sr10u lnpopmu i.yob i.regno i.regno#c.time, cluster(regno);
reg marrfu sr10u lnpopmu i.yob i.regno i.regno#c.time [aweight=popfu], cluster(regno);

*  Rural age 18-44;
reg marrfr sr10r lnpopmr i.yob i.regno, cluster(regno);
reg marrfr sr10r lnpopmr i.yob i.regno [aweight=popfr], cluster(regno);
reg marrfr sr10r lnpopmr i.yob i.regno i.regno#c.time, cluster(regno);
reg marrfr sr10r lnpopmr i.yob i.regno i.regno#c.time [aweight=popfr], cluster(regno);

*  Men age 18-44;
reg marrm sr10a lnpopf urbshm i.yob i.regno, cluster(regno);
reg marrm sr10a lnpopf urbshm i.yob i.regno [aweight=popm], cluster(regno);
reg marrm sr10a lnpopf urbshm i.yob i.regno i.regno#c.time, cluster(regno);
reg marrm sr10a lnpopf urbshm i.yob i.regno i.regno#c.time [aweight=popm], cluster(regno);

*  Urban age 18-44;
reg marrmu sr10u lnpopfu i.yob i.regno, cluster(regno);
reg marrmu sr10u lnpopfu i.yob i.regno [aweight=popmu], cluster(regno);
reg marrmu sr10u lnpopfu i.yob i.regno i.regno#c.time, cluster(regno);
reg marrmu sr10u lnpopfu i.yob i.regno i.regno#c.time [aweight=popmu], cluster(regno);

*  Rural age 18-44;
reg marrmr sr10r lnpopfr i.yob i.regno, cluster(regno);
reg marrmr sr10r lnpopfr i.yob i.regno [aweight=popmr], cluster(regno);
reg marrmr sr10r lnpopfr i.yob i.regno i.regno#c.time, cluster(regno);
reg marrmr sr10r lnpopfr i.yob i.regno i.regno#c.time [aweight=popmr], cluster(regno);

log close;


